package example02;

import java.io.Serializable;

/**
 * @Author liangbaigao
 * @Date 2023/9/28 11:02
 */
public class DeepCloning implements Cloneable, Serializable {

    public Person person = new Person();

    @Override
    public DeepCloning clone() {
        try {
            return (DeepCloning) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
